﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Domain
{
    /// <summary>
    /// 商品类型表
    /// </summary>
    public class GoogdsType
    {
        /// <summary>
        /// 商品类型id
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int GoodsTypeId { get; set; }

        /// <summary>
        /// 商品类型名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string GoogdsTypeName { get; set; }
        /// <summary>
        /// 父级id，一级目录为0
        /// </summary>
        public int ParentId { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDel { get; set; } = 0;
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
